home *** CD-ROM | disk | FTP | other *** search
/ Libris Britannia 4 / science library(b).zip / science library(b) / DTP / DTP_TEX / H220.ZIP / MUTEX.ZIP / GUIDE.TEX (.txt) < prev    next >
LaTeX Document  |  1990-03-06  |  71KB  |  1,499 lines

  1. % Process this file three times with LaTeX. Does not rely on any MuTeX font.
  2. \typeout{}
  3. \typeout{MuTeX User's Guide Version 1.1 <29 August 1989>}
  4. \typeout{Note: Run LaTeX three times to resolve cross-references.}
  5. \typeout{}
  6. \def\MuTeX{M\kern-.15em \raise.2ex\hbox{\lowercase{u}}\kern-.32em T%
  7. \kern-.1667em \lower.5ex\hbox{E}\kern-.125em X}
  8. \def\MF{{\small{METAFONT}}}
  9. \documentstyle[12pt]{report}
  10. \pagestyle{headings}
  11. \begin{document}
  12. \title{   \MuTeX \\
  13.        User's Guide\\
  14. {\normalsize (Version 1.1)}}
  15. \author{Fran{\c{c}}ois Jalbert}
  16. \date{29 August 1989}
  17. \maketitle
  18. \tableofcontents
  19. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  20. \chapter*{Preface}
  21. \typeout{Preface}
  22. \addcontentsline{toc}{chapter}{Preface}
  23. \markright{\rm\sl Preface}
  24. \pagestyle{myheadings}
  25. The \MuTeX\footnote{\copyright\ 1986,1987 by Andrea Steinbach and 
  26. Angelika Schofer.} package is a set of macros allowing 
  27. \TeX\footnote{Trademark of the American Mathematical Society.} to typeset 
  28. beautiful music. It is the outcome of a Master's thesis at the Rheinische 
  29. Friedrich-Wilhelms University:
  30. \begin{quote}
  31.   Rheinische Friedrich-Wilhelms Universit{\"{a}}t \\
  32.   Wegler Stra{\ss}e 6 \\
  33.   5300 Bonn \\
  34.   Deutschland
  35. \end{quote}
  36. \MuTeX\ can handle single-staff music with one or two voices. It can also 
  37. put text below the staff, and knows about most accents that go above 
  38. notes, or simply above the staff. However, it cannot deal with 
  39. multiple-staffs, or with notes of variable size. 
  40. The files initially available were:
  41. \begin{center}
  42.   \begin{tabular}{ll}
  43.     \verb"mtex.tex"     & The set of macros for \TeX. \\
  44.     \verb"mtexdemo.tex" & A demo in \TeX. \\
  45.     \verb"mtexinfo.tex" & A list of macros available.
  46.   \end{tabular}
  47. \end{center}
  48. I immediately saw the potential of this system which happened to answer 
  49. exactly my modest needs. Unfortunately, the brief document in german 
  50. enumerating the available macros was the only documentation available. Craig 
  51. D.\ Rice from St.\ Olaf College ({\tt{cdr@stolaf.edu}}) kindly translated it to 
  52. english. However, I felt the need for a more complete user's guide still 
  53. remained unanswered, and so I volunteered to give it a try. In addition, 
  54. setting up \MuTeX\ turned out to be tricky for a novice like me. I would
  55. like to help others avoid making the mistakes I made. 
  56. I decided to refer to the system as \MuTeX, which I find appropriate. I hope 
  57. nobody will mind. Since \MuTeX\ is a copyrighted product, I feel I am not 
  58. legally entitled to modify it. All my attemps at locating the authors by 
  59. electronic mail have failed. Consequently, even though 
  60. Appendix~\ref{secpatches} lists several errors I already have found in \MuTeX, 
  61. you still will have to modify \MuTeX\ yourself, if you feel like doing so. 
  62. Fortunately, this shouldn't take too long. It may be possible in the near
  63. future to supply you with some tools performing the changes automatically.
  64. The current version is only 0.92 and one can wonder if a version 1.0 ever saw 
  65. the light of day. This is even more possible as the original demo presents a 
  66. system which seems to involve a preprocessor of some sort. This preprocessor 
  67. would help relax the rather strict rules that one must follow right now while 
  68. using \MuTeX. I would love to hear more about this. I think it is possible that 
  69. the authors ran out of time, and had to cut things short near the end of their 
  70. master's work. This mysterious preprocessor may very well not exist yet. 
  71. The original demo included two different pieces of music. Since this demo 
  72. was not copyrighted, I felt I could indulge myself. I decided to split it 
  73. into two smaller demos. I also reformatted the commands to increase 
  74. legibility. Finally, I removed the german text which illustrated how the 
  75. music would have been entered with the preprocessor. More on the files 
  76. included with this guide can be found in Appendix~\ref{secsetting}.
  77. So here is my modest contribution. I decided to use 
  78. \LaTeX\footnote{Trademark of Addison-Wesley Publishing Company.} with 
  79. which I am somewhat familiar. I consider this guide supersedes Craig's 
  80. original translation effort, and this is why I decided not to include his 
  81. english translation of the german information file in this package. I hope he 
  82. won't mind. To produce this guide, run \LaTeX\ three times on the file 
  83. \verb"guide.tex", this to fully resolve cross-references. 
  84. If you plan on making this package available for FTP at your site, I would 
  85. appreciate you letting me know your coordinates and the path to be used for 
  86. retrieving \MuTeX. I plan on keeping updating the list of these sites in the 
  87. forthcoming versions of this guide. I could also add a list of people, and 
  88. their electronic mail address, who use \MuTeX\ regularly and are willing to 
  89. lend a helping hand. Here are the initial two FTP sites. I am told that 
  90. \verb"stolaf.edu" is only two hops off the NSFNet backbone while 
  91. \verb"cs.ubc.ca" is a rather slow site. 
  92. \begin{center}
  93.   \begin{tabular}{lll}
  94.     \verb"cs.ubc.ca"  & \verb"128.189.97.5" & \verb"/pub/src/MuTeX" \\
  95.     \verb"stolaf.edu" & \verb"130.71.128.1" & \verb"/pub"
  96.   \end{tabular}
  97. \end{center}
  98. There is still a lot I do not understand about \TeX, and I apologize in advance 
  99. for my errors. If you have any comments, suggestions, additions, etc, don't 
  100. hesitate to contact the author ({\tt{jalbert@cs.ubc.ca}}): 
  101. \begin{quote}
  102.   Fran{\c{c}}ois Jalbert \\
  103.   Computer Science Department \\
  104.   University of British Columbia \\
  105.   6356 Agricultural Road \\
  106.   Vancouver, BC \\
  107.   CANADA \\
  108.   V6T 1W5
  109. \end{quote}
  110. \pagestyle{headings}
  111. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  112. \chapter{Introduction}
  113. \typeout{Introduction}
  114. \section{\MuTeX\ Template}
  115. A piece of music should always be structured as in 
  116. Figure~\ref{figtemplate}. Several such music compositions are allowed 
  117. within one \TeX\ document. As is always the case with \TeX, let me 
  118. remind you that the last line of your input file should be 
  119. \verb"\bye". Let's now look into the different elements making up 
  120. \MuTeX's template. 
  121. \begin{figure}[htbp]
  122.   \begin{quote}
  123.     \verb"Preamble"\\
  124.     \verb"\beginsong{Clef}{Key}%"\\
  125.     \verb"\meter{"{\it{number\/}}\verb"}/{"{\it{number\/}}\verb"}%"\\
  126.     \mbox{}\verb"   .  %"\\
  127.     \mbox{}\verb"   .  %"\\
  128.     \mbox{}\verb"   .  %"\\
  129.     \verb"\endsong"
  130.   \end{quote}
  131. \caption{Standard \MuTeX\ Template.}
  132. \label{figtemplate}
  133. \end{figure}
  134. \section{Preamble}
  135. \label{secpreamble}
  136. The preamble specifies information like song title, author, and spacing. 
  137. The elements making up the preamble can be specified in any order, or 
  138. simply be omitted. 
  139. The title appears in boldface and is centered on top of the staff:
  140. \begin{quote}
  141.   \verb"\title{"{\it{text\/}}\verb"}"
  142. \end{quote}
  143. The composer goes to the right:
  144. \begin{quote}
  145.   \verb"\composer{"{\it{text\/}}\verb"}"
  146. \end{quote}
  147. The poet to the left:
  148. \begin{quote}
  149.   \verb"\poet{"{\it{text\/}}\verb"}"
  150. \end{quote}
  151. The voice goes to the left of the first staff. A default indentation of 
  152. the staff is supplied but may prove insufficient. Adjust it with 
  153. \verb"\parindent" as below: 
  154. \begin{quote}
  155.   \verb"\parindent "{\it{number\/}}\verb"pt"\\
  156.   \verb"\voice{"{\it{text\/}}\verb"}"
  157. \end{quote}
  158. Five different overall spacings between symbols on the staff are 
  159. available as shown in Figure~\ref{figspacing}. The spacing cannot be 
  160. changed once selected. The default is \verb"\universal". 
  161. \begin{figure}[htbp]
  162.   \begin{quote}
  163.     \verb"\hsmall"\\ 
  164.     \verb"\small"\\ 
  165.     \verb"\universal"\\ 
  166.     \verb"\wide"\\ 
  167.     \verb"\loose"
  168.   \end{quote}
  169. \caption{Available Spacings.}
  170. \label{figspacing}
  171. \end{figure}
  172. A final comment concerning spacing while we're at it: even though 
  173. \MuTeX\ tries to do a good job at spacing symbols properly, you will come 
  174. across an occasional unsatisfactory placement. It is possible to adjust 
  175. things by introducing spaces at the right places in your input file. That 
  176. is, \MuTeX\ is sensitive to spaces. However, it turns out a single space 
  177. in the input file usually result in too much space between consecutive 
  178. symbols on the staff. You are advised to use instead the command 
  179. \verb"$\,$". I have found it ideal for small adjustments and it is 
  180. possible to use several of these in a row for larger spaces. One usually 
  181. performs that kind of fine adjustment when all else has been entered and 
  182. verified to be correct. 
  183. Since spaces in your input file show up as extra spaces between the music 
  184. symbols being typeset, you cannot indent your input file at will to make 
  185. it easier to read. In addition, it is standard for \TeX\ to treat line 
  186. changes as equivalent to a space. Does that mean you are required to enter 
  187. your whole composition on one line? Fortunately not! The following two 
  188. simple rules do the trick: 
  189. \begin{itemize} 
  190.   \item Start each line exactly at the left margin.
  191.   \item Terminate each line with a \verb"%" character.
  192. \end{itemize}
  193. Now you understand the presence of \verb"%" signs in 
  194. Figure~\ref{figtemplate}! Note that the preamble does not require such a 
  195. special treatment. Finally, I will point out later where these strict 
  196. spacing rules can be relaxed. The examples of Appendix~\ref{secexample} 
  197. carefully obey these spacing requirements. 
  198. \section{Clefs}
  199. The available clefs are found in Figure~\ref{figclef}.
  200. \begin{figure}[htbp]
  201. \centering
  202.   \begin{tabular}{ll}
  203.     G-Clef:  & \verb"\vio" \\
  204.     F-Clef:  & \verb"\bass" \\
  205.     C-Clefs: & \verb"\bariton \tenor \alto \mezzosopran \sopran"
  206.   \end{tabular}
  207. \caption{Available Clefs.}
  208. \label{figclef}
  209. \end{figure}
  210. You may omit the clef.
  211. I have found the last two clefs to be identical in practice. Could this 
  212. be an error in \MuTeX?
  213. \section{Keys}
  214. The available keys are found in Figure~\ref{figkey}.
  215. \begin{figure}[hbtp]
  216. \centering
  217.   \begin{tabular}{l}
  218.     Major Keys $\sharp$:\\
  219.     \verb"\C \G \D \A \E \H \Fis"\\
  220.     Major Keys $\flat$:\\
  221.     \verb"\F \B \Es \As \Des \Ges \Ces"\\
  222.     Minor Keys $\sharp$:\\
  223.     \verb"\me \mh \mfis \mcis \mgis \mdis"\\
  224.     Minor Keys $\flat$:\\
  225.     \verb"\ma \md \mg \mc \mf \mb \mes"
  226.   \end{tabular}
  227. \caption{Available Keys.}
  228. \label{figkey}
  229. \end{figure}
  230. You may omit the key. Finally, note that in german music notation, 
  231. \verb"\H" stands for our \verb"\B", and \verb"\B" stands for our 
  232. \verb"\B"$\flat$. 
  233. \section{Time Signature}
  234. The time signature is optional and can be changed anywhere. A typical 
  235. example would be: 
  236. \begin{quote}
  237.   \verb"\meter{3}/{4}"
  238. \end{quote}
  239. One can use for $\subset\!\!\!\mid$ the following:
  240. \begin{quote}
  241.   \verb"\meter{}/{\music\allabreve}"
  242. \end{quote}
  243. One can also use for $\subset$:
  244. \begin{quote}
  245.   \verb"\meter{}/{\music\mC}"
  246. \end{quote}
  247. And for $\supset$:
  248. \begin{quote}
  249.   \verb"\meter{}/{\music\mCreverse}"
  250. \end{quote}
  251. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  252. \chapter{Notes and Rests}
  253. \typeout{Notes and Rests}
  254. \section{Pitches}
  255. The internal pitch of symbols is specified with integer numbers. The 
  256. convention is that the lowest horizontal line of the staff is numbered 
  257. $0$, and the upper one is numbered $8$. Positive and negative integer 
  258. values are allowed. 
  259. The available pitch changes for notes are listed in 
  260. Figure~\ref{figpitchnote}. 
  261. \begin{figure}[htbp]
  262. \centering
  263.   \begin{tabular}{lll}
  264. $\sharp$       & is obtained with & \verb"\x{"{\it{internal pitch\/}}\verb"}"\\
  265. $\sharp\sharp$ & is obtained with & \verb"\xx{"{\it{internal pitch\/}}\verb"}"\\
  266. $\natural$     & is obtained with & \verb"\n{"{\it{internal pitch\/}}\verb"}"\\
  267. $\flat$        & is obtained with & \verb"\b{"{\it{internal pitch\/}}\verb"}"\\
  268. $\flat\flat$   & is obtained with & \verb"\bb{"{\it{internal pitch\/}}\verb"}"
  269.   \end{tabular}
  270. \caption{Note Pitch Changes.}
  271. \label{figpitchnote}
  272. \end{figure}
  273. These pitch changes go in pair with their respective notes. \MuTeX\ is 
  274. insensitive to spaces between them. Leger lines are also added for pitch 
  275. changes below or above the staff. 
  276. Accidental pitch changes are stand alone symbols. However, they would not 
  277. function properly, apparently because of the presence of {\tt{@}} signs 
  278. in their name. I recommend in Appendix~\ref{secpatches} that you rename 
  279. them. The available pitch changes for accidentals\footnote{These 
  280. accidentals were originally named {\tt{x@}}, {\tt{n@}}, and {\tt{b@}}.} 
  281. are listed in Figure~\ref{figpitchacc}. 
  282. \begin{figure}[htbp]
  283. \centering
  284.   \begin{tabular}{lll}
  285.     $\sharp$   & is obtained with & \verb"\xA{"{\it{internal pitch\/}}\verb"}"\\
  286.     $\natural$ & is obtained with & \verb"\nA{"{\it{internal pitch\/}}\verb"}"\\
  287.     $\flat$    & is obtained with & \verb"\bA{"{\it{internal pitch\/}}\verb"}"
  288.   \end{tabular}
  289. \caption{Accidental Pitch Changes.}
  290. \label{figpitchacc}
  291. \end{figure}
  292. The note pitch changes go in pair with their notes, and the spacing in 
  293. between these symbols is automatically supplied. However, accidental 
  294. pitch changes do not insert space anywhere around themselves. This was 
  295. necessary since they are internally used by \MuTeX\ for the staff 
  296. signature which calls for no spacing between symbols. Consequently, you 
  297. will need to create space by putting some \verb"$\,$" in your input file 
  298. around accidental pitch changes whenever you use them. 
  299. \section{Notes}
  300. The available notes are listed in Figure~\ref{fignote}.
  301. \begin{figure}[htbp]
  302. \centering
  303.   \begin{tabular}{ll}
  304.     \verb"\g{"{\it{internal pitch\/}}\verb"}" & 
  305.          Whole Note (semibreve) \\[.5ex]
  306.     \verb"\h{"{\it{internal pitch\/}}\verb"}" & 
  307.          $\frac{1}{2}$ Note (minim) \\[.5ex]
  308.     \verb"\v{"{\it{internal pitch\/}}\verb"}" & 
  309.          $\frac{1}{4}$ Note (crotchet) \\[.5ex]
  310.     \verb"\a{"{\it{internal pitch\/}}\verb"}" & 
  311.          $\frac{1}{8}$ Note (quaver) \\[.5ex]
  312.     \verb"\s{"{\it{internal pitch\/}}\verb"}" & 
  313.          $\frac{1}{16}$ Note (semi-quaver) \\[.5ex]
  314.     \verb"\z{"{\it{internal pitch\/}}\verb"}" & 
  315.          $\frac{1}{32}$ Note (demisemi-quaver) \\[.5ex]
  316.     \verb"\d{"{\it{internal pitch\/}}\verb"}" & 
  317.          $\frac{1}{64}$ Note (demidemisemi-quaver) \\[.5ex]
  318.     \verb"\o{"{\it{internal pitch\/}}\verb"}" & 
  319.          $\frac{1}{128}$ Note (demidemidemisemi-quaver)
  320.   \end{tabular}
  321. \caption{Available Notes.}
  322. \label{fignote}
  323. \end{figure}
  324. The stem of the note is automatically oriented. In case you should not be 
  325. satisfied with \MuTeX's choice, use the \verb"\chord" command described 
  326. in Section~\ref{subchord} about chords to select the stem orientation. 
  327. Leger lines are also added for notes below or above the staff. Discussing 
  328. triplets is delayed until Section~\ref{subtriplet}, since they involve a 
  329. grouping command. 
  330. \section{Chords}
  331. \label{subchord}
  332. You can specify chords using the following commands:
  333. \begin{center}
  334.   \begin{tabular}{ll}
  335.     \verb"\rchord{"{\it{note(s)\/}}\verb"}\endchord" & Downward Stem \\
  336.     \verb"\lchord{"{\it{note(s)\/}}\verb"}\endchord" & Upward Stem
  337.   \end{tabular}
  338. \end{center}
  339. You must select the desired stem orientation for \MuTeX, and this feature 
  340. can be used to force the stem's orientation of single notes. There is 
  341. some confusion concerning the order in which notes should be supplied. 
  342. The original german documentation requested top to bottom order, while 
  343. the original german demo used bottom to top order. I have used both 
  344. orders without problems, but I would advise against using random order. 
  345. \section{Rests}
  346. The available rests are listed in Figure~\ref{figrest} and they all 
  347. assume an internal pitch of $5$, which need not be specified. 
  348. \begin{figure}[htbp]
  349. \centering
  350.   \begin{tabular}{ll}
  351.     \verb"\dpdd" & Four Measures Rest \\[.5ex]
  352.     \verb"\dpg" & Three Measures Rest \\[.5ex]
  353.     \verb"\dpd" & Two Measures Rest \\[.5ex]
  354.     \verb"\pg" & Whole Rest \\[.5ex]
  355.     \verb"\ph" & $\frac{1}{2}$ Rest \\[.5ex]
  356.     \verb"\pv" & $\frac{1}{4}$ Rest \\[.5ex]
  357.     \verb"\pa" & $\frac{1}{8}$ Rest \\[.5ex]
  358.     \verb"\ps" & $\frac{1}{16}$ Rest \\[.5ex]
  359.     \verb"\pz" & $\frac{1}{32}$ Rest \\[.5ex]
  360.     \verb"\pd" & $\frac{1}{64}$ Rest \\[.5ex]
  361.     \verb"\po" & $\frac{1}{128}$ Rest
  362.   \end{tabular}
  363. \caption{Available Rests.}
  364. \label{figrest}
  365. \end{figure}
  366. Unfortunately, the current release of \MuTeX\ does not yet have the fonts 
  367. for \verb"\pz", \verb"\pd", and \verb"\po". They simply come up as 
  368. \verb"\ps". 
  369. \section{Dots}
  370. You can specify a dot count after some note or rest with the following 
  371. command: 
  372. \begin{quote}
  373.   \verb"\.{"{\it{number\/}}\verb"}"
  374. \end{quote}
  375. The number must be supplied. The internal pitch is automatically derived from 
  376. the previous note or rest. 
  377. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  378. \chapter{Text}
  379. \typeout{Text}
  380. \label{sectext}
  381. Text can be entered below or above the staff with the commands:
  382. \begin{quote}
  383.   \verb"\_"{\it{positioning\/}}\verb"{"{\it{text below\/}}%
  384.   \verb"}{"{\it{note(s)}}\verb"}" \\
  385.   \verb"\^"{\it{positioning\/}}\verb"{"{\it{text above\/}}%
  386.   \verb"}{"{\it{note(s)}}\verb"}" \\
  387.   \verb"\_"{\it{positioning\/}}\verb"{"{\it{text below\/}}%
  388.   \verb"}\^"{\it{positioning\/}}\verb"{"{\it{text above\/}}%
  389.   \verb"}{"{\it{note(s)}}\verb"}"
  390. \end{quote}
  391. The order in the last command is important. Always start with text going 
  392. below the staff before the text going above the staff. Failure to do so 
  393. results in unpredictable behavior. 
  394. The available positioning characters are:
  395. \begin{quote}
  396.   \begin{description}
  397.     \item[n] Width of the text not considered. 
  398.     \item[c] Text will be centered, this is the default.
  399.     \item[l] Left justified with consideration to text width.
  400.     \item[r] Right justified with consideration to text width. 
  401.     \item[v] Text directly below its note(s) but never on the staff \\
  402.              (for \verb"\_" only).
  403.   \end{description}
  404. \end{quote}
  405. I noted that the \verb"r" option does not appear to work properly with 
  406. text, but works with \verb"\boxed". 
  407. The text is normally below or above the staff and is further adjusted if 
  408. it should conflict with symbols already below or above the staff. These 
  409. text entry commands are also used for the \verb"\boxed" command of 
  410. Section~\ref{subboxed}, and the fixed accents of Section~\ref{subfixed}. 
  411. I also found that \MuTeX\ is not very robust if you use the last command 
  412. (text below and above at the same time), and then specify different 
  413. positioning for the text below and above. One seems better off using 
  414. default positioning. 
  415. If you are not satisfied with the height of the text, use something like:
  416. \begin{quote}
  417.   \verb"\^{\raise "{\it{number\/}}\verb"\nhh\hbox{"{\it{text\/}}%
  418.   \verb"}}{"{\it{note(s)}}\verb"}"\\
  419.   \verb"\^{\lower "{\it{number\/}}\verb"\nhh\hbox{"{\it{text\/}}%
  420.   \verb"}}{"{\it{note(s)}}\verb"}"
  421. \end{quote}
  422. The quantity \verb"\nhh" is the quantity used in defining internal 
  423. pitches. 
  424. If you ever need to put text below or above an empty space, use something 
  425. like: 
  426. \begin{quote}
  427.   \verb"\^{"{\it{text\/}}\verb"}{\vrule height "{\it{number\/}}\verb"\nhh %"\\
  428.   \verb"width 0pt \gluebrule}"
  429. \end{quote}
  430. The height of the staff is \verb"4\nhh". This is used in the second 
  431. example of Appendix~\ref{secexample}. 
  432. For multiple lines of text, use something like:
  433. \begin{quote}
  434.   \verb"\^{$\hbox{"{\it{first line}}\verb" \hfill}\atop%"\\
  435.   \verb"\hbox{"{\it{second line}}\verb" \hfill}$}{"{\it{note(s)\/}}\verb"}"
  436. \end{quote}
  437. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  438. \chapter{Punctuation}
  439. \typeout{Punctuation}
  440. \section{Bar-Lines}
  441. \newcommand{\bthin}{\rule{.06em}{1.8ex}}
  442. \newcommand{\bthick}{\rule{.15em}{1.8ex}}
  443. Figure~\ref{figbar} lists the available bar-line symbols. They all assume 
  444. an internal pitch of $8$, which need not be specified. 
  445. \begin{figure}[htbp]
  446. \centering
  447.   \begin{tabular}{lll}
  448.     \verb"\|"               & Normal Bar-Line        & 
  449.           \bthin \\
  450.     \verb"\="               & Closing Bar-Line       & 
  451.           \bthin\,\bthick \\
  452.     \verb"\doublebarline"   & Double Bar-Line        & 
  453.           \bthin$\>\!$\bthin \\
  454.     \verb"\rightrepeat"     & Right Repeat Bar-Line  & 
  455.           \raise.40ex\hbox{:}\bthin\,\bthick \\
  456.     \verb"\leftrepeat"      & Left Repeat Bar-Line   & 
  457.           \bthick\,\bthin$\>\!$\raise.40ex\hbox{:} \\
  458.     \verb"\leftrightrepeat" & Double Repeat Bar-Line & 
  459.           \raise.40ex\hbox{:}\bthin\,\bthick\,\bthin\raise.40ex\hbox{:}
  460.   \end{tabular}
  461. \caption{Available Bar-Lines.}
  462. \label{figbar}
  463. \end{figure}
  464. \MuTeX\ can only split staffs at the location of bar-lines. You may 
  465. experience difficulties if you have a lot of symbols between two 
  466. consecutive bar-lines. 
  467. \section{Crescendo}
  468. You can specify crescendo and decrescendo marks above the staff with the 
  469. following: 
  470. \begin{quote} 
  471.   \verb"\cresc{"{\it{note(s)\/}}\verb"}"\\ 
  472.   \verb"\decresc{"{\it{note(s)\/}}\verb"}" 
  473. \end{quote} 
  474. The height of these marks will automatically be adjusted to lie above any 
  475. notes already above the staff. \MuTeX\ does not split staffs while 
  476. processing these commands. 
  477. \section{Orientation Marks}
  478. \label{subboxed}
  479. Enter text to be put in a box on the staff with the command:
  480. \begin{quote} 
  481.   \verb"\boxed{"{\it{text\/}}\verb"}" 
  482. \end{quote}
  483. The boxed text is put by default on the staff. Use the commands \verb"\^" 
  484. or \verb"\_" previously described in Chapter~\ref{sectext} about text 
  485. entry to have the box put on top or below the staff. You may have to use 
  486. a positioning command. 
  487. \section{Breathing Marks}
  488. Enter a breathing mark with:
  489. \begin{quote} 
  490.   \verb"\caesura"
  491. \end{quote}
  492. \section{Boxes}
  493. You can specify two boxes in a row with the command:
  494. \begin{quote}
  495.   \verb"\1{"{\it{note(s)\/}}\verb"}\2{"{\it{note(s)\/}}\verb"}\*"
  496. \end{quote}
  497. The \raise.40ex\hbox{:}\bthin\,\bthick\ is automatically supplied for you 
  498. at the end of the first box. You must supply the proper bar-line command 
  499. at the end of the second box. The boxes are simply numbered $1$ and $2$. 
  500. The two boxes must lie on the same staff. I think this is an area where 
  501. improvements could be made, like multiple boxes, and more complex 
  502. numbering. 
  503. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  504. \chapter{Accents}
  505. \typeout{Accents}
  506. There are two types of accents:
  507. \begin{description}
  508.   \item[Floating Accents:] These go directly above or below their 
  509.                            supporting notes, and often lie on the staff.
  510.   \item[Fixed Accents:] These always lie above or below the staff.
  511. \end{description}
  512. \section{Floating Accents}
  513. Figure~\ref{figfloat} lists the available floating accents. The internal 
  514. pitches used are automatically derived from the notes below or above 
  515. them. 
  516. \begin{figure}[htbp]
  517. \centering
  518.   \begin{tabular}{lll}
  519.     \verb"\stac"          & Staccato      & $\cdot$ \\
  520.     \verb"\staccatissimo" & Staccatissimo & $\scriptstyle\prime$ \\
  521.     \verb"\tr"            & Trill         & {\it{tr}} \\
  522.     \verb"\trbrack"       & Trill         & {\it{(tr)}} \\
  523.     \verb"\tenuto"        & Tenuto        & $-$ \\
  524.     \verb"\plus"          & Trill         & $+$ \\
  525.     \verb"\noaccent"      & No Accent     & \\
  526.   \end{tabular}
  527. \caption{Available Floating Accents.}
  528. \label{figfloat}
  529. \end{figure}
  530. Once set, an accent remains effective until the \verb"\noaccent" command 
  531. is encountered. Don't forget it or else they will pile up! 
  532. \section{Fixed Accents}
  533. \label{subfixed}
  534. Figure~\ref{figfixed} lists the available fixed accents\footnote{The 
  535. author recommends you add the {\tt{fermateup}} and {\tt{fermatedown}} 
  536. fixed accents to \MuTeX.}. These must always be part of a \verb"\^" or 
  537. \verb"\_" command as described in Chapter~\ref{sectext}. There is no need 
  538. for a \verb"\noaccent" command after their use since they are treated as 
  539. text. 
  540. \begin{figure}[htbp]
  541. \centering
  542.   \begin{tabular}{ll}
  543.     \verb"\dec"            & Small $>$ \\
  544.     \verb"\fermateup"      & $\frown$\kern-0.63em \lower.2ex\hbox{$\cdot$} \\
  545.     \verb"\fermatedown"    & $\smile$\kern-0.65em \raise.2ex\hbox{$\cdot$} \\
  546.     \verb"\cantusfirmus"   & {\it{c.f.}} \\
  547.     \verb"\crescendo"      & {\it{cresc.}} \\
  548.     \verb"\dacapo"         & {\it{d.c.}} \\
  549.     \verb"\dalsegno"       & {\it{d.s.}} \\
  550.     \verb"\decrescendo"    & {\it{decresc.}} \\
  551.     \verb"\diminuendo"     & {\it{dim.}} \\
  552.     \verb"\fine"           & {\it{fine}} \\
  553.     \verb"\forte"          & {\it{f}} \\
  554.     \verb"\fortissimo"     & {\it{ff}} \\
  555.     \verb"\fortissimoposs" & {\it{fff}} \\
  556.     \verb"\fortepiano"     & {\it{fp}} \\
  557.     \verb"\forzato"        & {\it{fz}} \\
  558.     \verb"\mezzoforte"     & {\it{mf}} \\
  559.     \verb"\mezzopiano"     & {\it{mp}} \\
  560.     \verb"\piano"          & {\it{p}} \\
  561.     \verb"\pianissimo"     & {\it{pp}} \\
  562.     \verb"\pianissimoposs" & {\it{ppp}} \\
  563.     \verb"\rallentando"    & {\it{rall.}} \\
  564.     \verb"\rinforzando"    & {\it{rfz.}} \\
  565.     \verb"\ritardando"     & {\it{rit.}} \\
  566.     \verb"\ritenuto"       & {\it{riten.}} \\
  567.     \verb"\sforzato"       & {\it{sfz}} \\
  568.     \verb"\sforz"          & {\it{sf}} \\
  569.     \verb"\staccato"       & {\it{stacc.}} \\
  570.     \verb"\tacet"          & {\it{tacet}} \\
  571.     \verb"\unisono"        & {\it{unis.}}
  572.   \end{tabular}
  573. \caption{Available Fixed Accents.}
  574. \label{figfixed}
  575. \end{figure}
  576. The height of these accents will automatically be adjusted to lie above 
  577. or below any notes already above or below the staff. 
  578. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  579. \chapter{Two-Voice Music}
  580. \typeout{Two-Voice Music}
  581. \label{sectwo}
  582. Two-voice composition is specified with the following:
  583. \begin{quote}
  584.   \verb"\two{"{\it{note(s) above\/}}\verb"}"\\
  585.   \mbox{}\verb"    {"{\it{note(s) below\/}}\verb"}"
  586. \end{quote}
  587. You will note that spaces between both voices in the input file are 
  588. allowed, which can improve somewhat the readability. Both voices must 
  589. have the same number of elements. Combine a note and its pitch change 
  590. into one element by including them within braces \verb"{" and \verb"}", 
  591. likewise for notes and dots. Note that \MuTeX\ never splits a two-voice 
  592. group of notes from one staff to the other. Therefore, it is preferable 
  593. to specify the bar-lines while not in two-voices mode.
  594. The stems of notes may conflict sometimes: use the \verb"\chord" command 
  595. of Section~\ref{subchord} to impose the correct behavior. An additional 
  596. potential problem occurs with rests which lie at a fixed internal pitch. 
  597. You may find it useful to modify a rest's internal pitch with commands 
  598. like: 
  599. \begin{quote}
  600.   \verb"{\raise "{\it{number\/}}\verb"\nhh\hbox{"{\it{rest\/}}\verb"}}" \\
  601.   \verb"{\lower "{\it{number\/}}\verb"\nhh\hbox{"{\it{rest\/}}\verb"}}"
  602. \end{quote}
  603. This trick and the quantity \verb"\nhh" were already introduced in 
  604. Chapter~\ref{sectext}. Take a careful look at the first example of 
  605. Appendix~\ref{secexample}. This has been used near the end of it. 
  606. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  607. \chapter{Grouping}
  608. \typeout{Grouping}
  609. \section{Grouping Template}
  610. \label{subgroup}
  611. The grouping command is necessary to specify slurs and beams. It is quite 
  612. flexible, but requires a fair amount of information. Grouping commands 
  613. are of two forms of increasing complexity: 
  614. \begin{quote}
  615.   \verb"\group{"{\it{element list\/}}\verb"}" \\
  616.   \mbox{}\verb"      {"{\it{pitch list\/}}\verb"}"{\it{slur list\/}}%
  617.   \verb"\go"\\[.8ex]
  618.   \verb"{\def\beamlist{"{\it{beam list\/}}\verb"}%"\\
  619.   \verb"\group{"{\it{element list\/}}\verb"}" \\
  620.   \mbox{}\verb"      {"{\it{pitch list\/}}\verb"}"{\it{slur list\/}}\verb"\go}"
  621. \end{quote}
  622. Note again where spaces can be introduced in the input file for better 
  623. readability. 
  624. The first form can handle all slurs as well as single beams.            
  625. Therefore, it can be used for all groupings involving whole, half, 
  626. quarter, and eighth notes only. If more than one level of beams is needed 
  627. in the grouping, then the second more complex form must be used. Here 
  628. again, \MuTeX\ never splits a group from one staff to the other. I now 
  629. describe the various lists just introduced. 
  630. \section{Element List}
  631. The element list specifies the notes making up the group. It has the 
  632. form: 
  633. \begin{quote}
  634.   \verb"\\{"{\it{note\/}}\verb"}" \ldots\,\verb"\\{"{\it{note\/}}\verb"}"
  635. \end{quote}
  636. Make sure the notes in the element list are compatible with the beams you 
  637. will later request. It is quite possible for a group to span several 
  638. bar-lines, these bar-lines are then elements of the element list. A good 
  639. example of this is found in the second example of 
  640. Appendix~\ref{secexample}. Take a look at it! 
  641. \section{Pitch List}
  642. \label{subpitch}
  643. The pitch list specifies the internal pitch of each element in the 
  644. element list. It has the form: 
  645. \begin{quote}
  646.   \verb"\\{"{\it{internal pitch\/}}\verb"}" \ldots\,%
  647.   \verb"\\{"{\it{internal pitch\/}}\verb"}"
  648. \end{quote}
  649. Note that internal pitches are already specified as part of the notes in 
  650. the element list. Nevertheless, they must again be specified in the pitch 
  651. list. In addition, some elements of the element list are normally 
  652. supplied without an internal pitch, i.e., bar-lines. You must also supply 
  653. their implicit internal pitch in the pitch list. Remember that bar-lines 
  654. have an internal pitch of $8$, and that rests have one of $5$. 
  655. This may all sound like an unnecessary large amount of information. But 
  656. the freedom to perturb slightly the internal pitches in the pitch list 
  657. allows one to improve the positioning of beams and slurs. Such fine 
  658. tuning is not normally necessary, but for example, is mandatory for 
  659. triplets discussed in Section~\ref{subtriplet}. It is also nice to have 
  660. such a fine tuning available at all time. 
  661. \section{Slur List}
  662. The slur list specifies all the required slurs, and the beams at the 
  663. eighth level only. It may contain several of the following: 
  664. \begin{center}
  665.   \begin{tabular}{ll}
  666.     \verb"\uslur{"{\it{begin number\/}}\verb"}{"{\it{end number\/}}\verb"}" &
  667.         Slur above the group \\
  668.     \verb"\lslur{"{\it{begin number\/}}\verb"}{"{\it{end number\/}}\verb"}" &
  669.         Slur below the group \\
  670.     \verb"\ubeam{"{\it{begin number\/}}\verb"}{"{\it{end number\/}}\verb"}" &
  671.         Eighth Beam above \\
  672.     \verb"\lbeam{"{\it{begin number\/}}\verb"}{"{\it{end number\/}}\verb"}" &
  673.         Eighth Beam below 
  674.   \end{tabular}
  675. \end{center}
  676. The numbers range from $1$ to the number of elements in the element list. 
  677. If you ask for a beam, \MuTeX\ will first check if it involves only 
  678. eighth notes. If so, it will generate the beam immediately. If the beam 
  679. involves sixteenth notes or even smaller notes, \MuTeX\ will use your 
  680. beam list. 
  681. \section{Beam List}
  682. The beam list tells \MuTeX\ what structure of beams should be used. The 
  683. number of stems involved in each \verb"\beam" command must equal the 
  684. number of stems involved in the beam list. A typical beam list looks 
  685. like: 
  686. \begin{quote}
  687.   \verb"\\{"{\it{level list\/}}\verb"}" \ldots\,%
  688.   \verb"\\{"{\it{level list\/}}\verb"}"
  689. \end{quote}
  690. The first level list controls the eighth beams, the second the sixteenth 
  691. beams, etc. A level list is defined as: 
  692. \begin{quote}
  693.   {\it{number\/}}\verb"-"{\it{number}}\verb"," \ldots\,{\it{number\/}}%
  694.   \verb"-"{\it{number}}\verb","
  695. \end{quote}
  696. These numbers are the consecutive pairs of extreme stems linked by a beam 
  697. at the current level. This may sound a little bit complicated for the 
  698. beginner, but believe me, it really isn't. There is a simple use of the 
  699. beam list in the first example of Appendix~\ref{secexample}. Take a look. 
  700. The default beam list is defined in \MuTeX\ as:
  701. \begin{quote}
  702.   \verb"\\{1-n,}"
  703. \end{quote}
  704. where \verb"n" is the number of elements in the current element list. 
  705. This explains why the first form of the grouping command introduced in 
  706. Section~\ref{subgroup} can handle notes with an eighth beam at most. This 
  707. is exactly the beam list that would be needed. 
  708. I haven't experimented a lot with grouping, but I would recommend you 
  709. specify all the quantities involved in the obvious increasing order. 
  710. \section{Triplets}
  711. \label{subtriplet}
  712. This is the logical place to discuss triplets as they involve a slur. A
  713. typical triplet looks like:
  714. \begin{quote}
  715.   \mbox{}\verb"\group{\\{\v{4}}%"\\
  716.   \mbox{}\verb"\\{\^{\lower 1.25\nhh\hbox{3}}{\v{5}}}\\{\v{6}}}"\\
  717.   \mbox{}\verb"      {\\{5}\\{6}\\{7}}\uslur{1}{3}\go%"
  718. \end{quote}
  719. The symbol \verb"3" is entered using one of the standard text command 
  720. introduced in Chapter~\ref{sectext}. Its height has also been lowered to help 
  721. fitting it under the slur. Finally, the height of the slur has been increased 
  722. also to help make room for the \verb"3". This is accomplished by 
  723. increasing the pitches in the pitch list.
  724. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  725. \appendix
  726. \chapter{Examples}
  727. \typeout{Examples}
  728. \label{secexample}
  729. Even though we have covered all the main features of \MuTeX, there is 
  730. nothing like a couple of examples to help clarify things. A couple of 
  731. demo pieces of music are supplied with \MuTeX. Here is how both are 
  732. written. We must thank the authors A.\ Steinbach and A.\ Schofer for 
  733. these examples. 
  734. \section{Bach}
  735. \mbox{}\verb"\title{Cello Menuet}" \newline
  736. \mbox{}\verb"\poet{Viola}" \newline
  737. \mbox{}\verb"\composer{Johann Sebastian Bach}" \newline
  738. \mbox{}\verb"\universal" \newline
  739. \mbox{}\verb"\beginsong\alto\F%" \newline
  740. \mbox{}\verb"%" \newline
  741. \mbox{}\verb"\meter{3}/{4}%" \newline
  742. \mbox{}\verb"\rchord{\h{5}\h{7}\h{9}}\endchord%" \newline
  743. \mbox{}\verb"\v{10}%" \newline
  744. \mbox{}\verb"\|%" \newline
  745. \mbox{}\verb"\two{\group{\\{\a{10}}\\{\a{9}}\\{\a{10}}\\{\a{8}}}" \newline
  746. \mbox{}\verb"           {\\{10}\\{9}\\{10}\\{8}}\ubeam{1}{4}\uslur{1}{2}%"%
  747. \newline
  748. \mbox{}\verb"\go}" \newline
  749. \mbox{}\verb"    {\rchord{\a{4}\a{6}}\endchord}%" \newline
  750. \mbox{}\verb"\v{9}\|%" \newline
  751. \mbox{}\verb"%" \newline
  752. \mbox{}\verb"\rchord{\v{3}\v{5}}\endchord%" \newline
  753. \mbox{}\verb"\v{8}%" \newline
  754. \mbox{}\verb"\group{\\{\a{7}}\\{\a{6}}}" \newline
  755. \mbox{}\verb"      {\\{7}\\{6}}\lbeam{1}{2}\go%" \newline
  756. \mbox{}\verb"\|%" \newline
  757. \mbox{}\verb"\two{\group{\\{\a{7}}\\{\a{6}}\\{\a{5}}\\{\x{4}\a{4}}%" \newline
  758. \mbox{}\verb"\\{\n{3}\a{3}}\\{\a{2}}}" \newline
  759. \mbox{}\verb"           {\\{7}\\{6}\\{5}\\{4}\\{3}\\{2}}\ubeam{1}{6}%" \newline
  760. \mbox{}\verb"\uslur{1}{3}\go}" \newline
  761. \mbox{}\verb"    {\a{2}}%" \newline
  762. \mbox{}\verb"\|%" \newline
  763. \mbox{}\verb"\rchord{\h{5}\h{7}\h{9}}\endchord%" \newline
  764. \mbox{}\verb"\v{10}%" \newline
  765. \mbox{}\verb"\|%" \newline
  766. \mbox{}\verb"\two{\group{\\{\a{10}}\\{\a{9}}\\{\tenuto\a{10}\noaccent}%"%
  767. \newline
  768. \mbox{}\verb"\\{\tenuto\a{8}\noaccent}}" \newline
  769. \mbox{}\verb"           {\\{10}\\{9}\\{10}\\{8}}\ubeam{1}{4}\uslur{1}{2}%"%
  770. \newline
  771. \mbox{}\verb"\go}" \newline
  772. \mbox{}\verb"    {\a{6}}%" \newline
  773. \mbox{}\verb"\v{11}%" \newline
  774. \mbox{}\verb"\|%" \newline
  775. \mbox{}\verb"\rchord{\v{7}\v{9}}\endchord%" \newline
  776. \mbox{}\verb"\rchord{\v{3}\v{7}\v{12}}\endchord%" \newline
  777. \mbox{}\verb"\rchord{\v{1}\v{8}\v{13}}\endchord%" \newline
  778. \mbox{}\verb"\|%" \newline
  779. \mbox{}\verb"\rchord{{\h{2}\.{1}}{\h{6}\.{1}}{\x{11}\h{11}\.{1}}}%" \newline
  780. \mbox{}\verb"\endchord\leftrightrepeat%" \newline
  781. \mbox{}\verb"%" \newline
  782. \mbox{}\verb"\rchord{\h{9}\h{13}}\endchord%" \newline
  783. \mbox{}\verb"{\def\beamlist{\\{{1}-{3},}\\{{2}-{3},}}%" \newline
  784. \mbox{}\verb"\group{\\{\a{12}}\\{\s{13}}\\{\s{14}}}" \newline
  785. \mbox{}\verb"      {\\{12}\\{13}\\{14}}\lbeam{1}{3}\uslur{1}{3}\go}%" \newline
  786. \mbox{}\verb"\|%" \newline
  787. \mbox{}\verb"\two{\group{\\{\a{13}}\\{\a{12}}\\{\x{11}\a{11}}\\{\a{13}}%"%
  788. \newline
  789. \mbox{}\verb"\\{\a{9}}\\{\a{8}}}" \newline
  790. \mbox{}\verb"           {\\{13}\\{12}\\{11}\\{13}\\{9}\\{8}}\ubeam{1}{6}%"%
  791. \newline
  792. \mbox{}\verb"\uslur{1}{5}\go}" \newline
  793. \mbox{}\verb"    {\a{8}}%" \newline
  794. \mbox{}\verb"\|%" \newline
  795. \mbox{}\verb"\two{\group{\\{\v{9}}\\{\v{12}}}" \newline
  796. \mbox{}\verb"           {\\{9}\\{12}}\uslur{1}{2}\go}" \newline
  797. \mbox{}\verb"    {\h{7}}%" \newline
  798. \mbox{}\verb"\x{11}%" \newline
  799. \mbox{}\verb"\two{\v{11}}" \newline
  800. \mbox{}\verb"    {\v{6}}%" \newline
  801. \mbox{}\verb"\|%" \newline
  802. \mbox{}\verb"\two{\group{\\{\a{15}}\\{\a{14}}\\{\a{13}}\\{\a{14}}%" \newline
  803. \mbox{}\verb"\\{\a{12}}\\{\n{11}\a{11}}}" \newline
  804. \mbox{}\verb"           {\\{15}\\{14}\\{13}\\{14}\\{12}\\{11}}%" \newline
  805. \mbox{}\verb"\ubeam{1}{6}\uslur{1}{5}\go}" \newline
  806. \mbox{}\verb"    {\a{5}}%" \newline
  807. \mbox{}\verb"\|%" \newline
  808. \mbox{}\verb"\two{\h{10}}" \newline
  809. \mbox{}\verb"    {\group{\\{\v{8}}\\{\v{7}}}" \newline
  810. \mbox{}\verb"           {\\{8}\\{7}}\lslur{1}{2}\go}%" \newline
  811. \mbox{}\verb"\two{\v{11}}{\v6}%" \newline
  812. \mbox{}\verb"\|%" \newline
  813. \mbox{}\verb"\two{\group{\\{\a{9}}\\{\a{8}}\\{\a{9}}\\{\a{7}}}" \newline
  814. \mbox{}\verb"           {\\{9}\\{8}\\{9}\\{7}}\ubeam{1}{4}\go}" \newline
  815. \mbox{}\verb"    {\a{7}}%" \newline
  816. \mbox{}\verb"\rchord{\v{12}\v{6}\v{3}}\endchord%" \newline
  817. \mbox{}\verb"\|%" \newline
  818. \mbox{}\verb"\rchord{\v{11}\v{7}\v{2}}\endchord%" \newline
  819. \mbox{}\verb"\group{\\{\a{10}}\\{\a{9}}\\{\a{8}}\\{\a{9}}}" \newline
  820. \mbox{}\verb"      {\\{10}\\{9}\\{8}\\{9}}\lbeam{1}{4}\go%" \newline
  821. \mbox{}\verb"\|%" \newline
  822. \mbox{}\verb"\group{\\{\a{7}}\\{\a{6}}\\{\a{7}}\\{\a{9}}\\{\a{8}}%" \newline
  823. \mbox{}\verb"\\{\a{10}}}" \newline
  824. \mbox{}\verb"      {\\{7}\\{6}\\{7}\\{9}\\{8}\\{10}}\lbeam{1}{6}\go%" \newline
  825. \mbox{}\verb"\|%" \newline
  826. \mbox{}\verb"\x{7}%" \newline
  827. \mbox{}\verb"\two{\tr\h{9}}" \newline
  828. \mbox{}\verb"    {\h{7}}%" \newline
  829. \mbox{}\verb"\two{\v{10}}" \newline
  830. \mbox{}\verb"    {\pv}%" \newline
  831. \mbox{}\verb"\|%" \newline
  832. \mbox{}\verb"\b{6}%" \newline
  833. \mbox{}\verb"\two{\group{\\{\a{8}}\\{\a{7}}\\{\a{8}}\\{\a{6}}}" \newline
  834. \mbox{}\verb"           {\\{8}\\{7}\\{8}\\{6}}\ubeam{1}{4}\uslur{1}{2}%"%
  835. \newline
  836. \mbox{}\verb"\go}" \newline
  837. \mbox{}\verb"    {\a{6}}%" \newline
  838. \mbox{}\verb"\x{7}{\tr\v{7}}%" \newline
  839. \mbox{}\verb"\|%" \newline
  840. \mbox{}\verb"\rchord{\v{12}\v{8}\v{3}}\endchord%" \newline
  841. \mbox{}\verb"\rchord{\v{11}\v{8}\v{4}}\endchord%" \newline
  842. \mbox{}\verb"\two{\group{\\{\a{10}}\\{\a{9}}}" \newline
  843. \mbox{}\verb"           {\\{10}\\{9}}\ubeam{1}{2}\uslur{1}{2}\go}" \newline
  844. \mbox{}\verb"    {\v{5}}%" \newline
  845. \mbox{}\verb"\|%" \newline
  846. \mbox{}\verb"\group{\\{\rchord{\a{11}\a{5}\a{1}}\endchord}\\{\a{10}}%" \newline
  847. \mbox{}\verb"\\{\a{9}}\\{\a{10}}\\{\a{8}}\\{\a{10}}}" \newline
  848. \mbox{}\verb"         {\\{1}\\{10}\\{9}\\{10}\\{8}\\{10}}\lbeam{1}{6}\go%"%
  849. \newline
  850. \mbox{}\verb"\|%" \newline
  851. \mbox{}\verb"\two{\group{\\{\v{12}}\\{\x{11}\v{11}}}" \newline
  852. \mbox{}\verb"           {\\{12}\\{11}}\uslur{1}{2}\go}" \newline
  853. \mbox{}\verb"    {\v{8}\pv}%" \newline
  854. \mbox{}\verb"\n{7}%" \newline
  855. \mbox{}\verb"\two{\v{12}}" \newline
  856. \mbox{}\verb"    {\v{7}}%" \newline
  857. \mbox{}\verb"\|%" \newline
  858. \mbox{}\verb"\x{4}%" \newline
  859. \mbox{}\verb"\two{\group{\\{\a{8}}\\{\a{7}}\\{\a{8}}\\{\a{6}}}" \newline
  860. \mbox{}\verb"           {\\{8}\\{7}\\{8}\\{6}}\ubeam{1}{4}\uslur{1}{2}\go}"%
  861. \newline
  862. \mbox{}\verb"    {\a{4}}%" \newline
  863. \mbox{}\verb"\two{\v{7}}" \newline
  864. \mbox{}\verb"    {\v{5}}%" \newline
  865. \mbox{}\verb"\|%" \newline
  866. \mbox{}\verb"\group{\\{\a{1}}\\{\a{8}}}" \newline
  867. \mbox{}\verb"      {\\{1}\\{8}}\lbeam{1}{2}\go%" \newline
  868. \mbox{}\verb"\two{\tr\v{6}\.{1}}" \newline
  869. \mbox{}\verb"    {\v{2}\.{1}}%" \newline
  870. \mbox{}\verb"\two{\a{5}}" \newline
  871. \mbox{}\verb"    {\raise-1.5\nhh\hbox{\pa}}%" \newline
  872. \mbox{}\verb"\|%" \newline
  873. \mbox{}\verb"\lchord{\h{5}\.{1}\h{2}\.{1}\h{-2}\.{1}}\endchord%" \newline
  874. \mbox{}\verb"\rightrepeat%" \newline
  875. \mbox{}\verb"%" \newline
  876. \mbox{}\verb"\endsong" \newline
  877. \mbox{}\verb"\bye"
  878. \section{Distler}
  879. \mbox{}\verb"\def\@#1#2{{$\hbox{#1 \hfill}\atop\hbox{#2 \hfill}$}}" \newline
  880. \mbox{}\verb"\title{Lobe den Herren}" \newline
  881. \mbox{}\verb"\composer{Hugo Distler}" \newline
  882. \mbox{}\verb"\parindent 40pt" \newline
  883. \mbox{}\verb"\voice{Sopran}" \newline
  884. \mbox{}\verb"\universal" \newline
  885. \mbox{}\verb"\beginsong\vio\G%" \newline
  886. \mbox{}\verb"\^r{\rm Schnell}{\vrule height 7\nhh width0pt\gluebrule}%" \newline
  887. \mbox{}\verb"%" \newline
  888. \mbox{}\verb"\meter{3}/{4}%" \newline
  889. \mbox{}\verb"\_{\@{Lo-}{Mei-}}\^{\mezzoforte}{\v{2}}%" \newline
  890. \mbox{}\verb"\_{\@{be}{ne}}{\v{2}}%" \newline
  891. \mbox{}\verb"\_{\@{den}{ge-}}{\v{6}}%" \newline
  892. \mbox{}\verb"\|%" \newline
  893. \mbox{}\verb"\_{\@{Her-}{lie-}}{\v{4}\.{1}}%" \newline
  894. \mbox{}\verb"\_{\@{ren,}{be-}}{\a{3}}" \newline
  895. \mbox{}\verb"\_l{\@{den}{te}}{\v{2}}%" \newline
  896. \mbox{}\verb"\|%" \newline
  897. \mbox{}\verb+\_l{\@{m\"{a}ch-}{See-}}{\v{1}}%+ \newline
  898. \mbox{}\verb"\_{\@{ti-}{le,}}{\v{0}}%" \newline
  899. \mbox{}\verb"\_{\@{gen}{das}}{\v{-1}}%" \newline
  900. \mbox{}\verb"\|%" \newline
  901. \mbox{}\verb+\_{\@{K\"{o}-}{ist}}{\h{0}}%+ \newline
  902. \mbox{}\verb"\group{\\{\_n{\@{nig ---}{mein ---}}{\v1}}\\{\|%" \newline
  903. \mbox{}\verb"\meter{2}/{4}}\\{\v1}}" \newline
  904. \mbox{}\verb"      {\\{1}\\{0}\\{1}}\lslur{1}{3}\go%" \newline
  905. \mbox{}\verb"\_{\@{der}{Be-}}{\v{2}}%" \newline
  906. \mbox{}\verb"\|%" \newline
  907. \mbox{}\verb"\meter{4}/{4}%" \newline
  908. \mbox{}\verb"\_{\@{Eh-}{geh-}}{\h{3}}%" \newline
  909. \mbox{}\verb"\_{\@{ren!}{ren.}}{\h{2}}\rightrepeat%" \newline
  910. \mbox{}\verb"%" \newline
  911. \mbox{}\verb"\meter{3}/{4}%" \newline
  912. \mbox{}\verb"\_r{Kom-}\^{\forte}{\v{6}}%" \newline
  913. \mbox{}\verb"\_{met}{\v{6}}%" \newline
  914. \mbox{}\verb"\_{zu}{\v{6}}%" \newline
  915. \mbox{}\verb"\|%" \newline
  916. \mbox{}\verb"\_{Hauf!}{\h{7}\.{1}}\caesura%" \newline
  917. \mbox{}\verb"\|%" \newline
  918. \mbox{}\verb"\_{Psal-}{\v{4}}%" \newline
  919. \mbox{}\verb"\_{ter}{\a{5}}%" \newline
  920. \mbox{}\verb"\_l{und}{\a{5}}" \newline
  921. \mbox{}\verb"\group{\\{\_{Har-}{\v{6}}}\\{\|}\\{\_{-}{\a{6}}}%" \newline
  922. \mbox{}\verb"\\{\_{-}{\a{7}}}\\{\_{-}{\a{6}}}\\{\_{-}{\a{4}}}%" \newline
  923. \mbox{}\verb"\\{\_{-}{\v{6}}}\\{\|}\\{\_{-}{\a{6}}}\\{\_{-}{\a{7}}}%" \newline
  924. \mbox{}\verb"\\{\_{-}{\v{6}\.{1}}}\\{\_{-}{\a{7}}}\\{\|}%" \newline
  925. \mbox{}\verb"\\{\_{-}{\v{6}\.{1}}}}" \newline
  926. \mbox{}\verb"      {\\{6}\\{8}\\{6}\\{7}\\{6}\\{4}\\{6}\\{8}\\{6}\\{7}%"%
  927. \newline
  928. \mbox{}\verb"\\{6}\\{7}\\{8}\\{6}}\lbeam{3}{6}\lbeam{9}{10}\uslur{1}{3}%"%
  929. \newline
  930. \mbox{}\verb"\uslur{7}{9}\uslur{1}{14}\go%" \newline
  931. \mbox{}\verb"\_{fe,}{\a{5}}%" \newline
  932. \mbox{}\verb"\_l{wacht}{\v{4}}%" \newline
  933. \mbox{}\verb"\|%" \newline
  934. \mbox{}\verb"\_{auf,}\^{\piano}{\h{3}}%" \newline
  935. \mbox{}\verb"\group{\\{\_n{wacht}{\caesura\a{4}}}\\{\a{2}}}" \newline
  936. \mbox{}\verb"      {\\{4}\\{2}}\ubeam{1}{2}\go%" \newline
  937. \mbox{}\verb"\|%" \newline
  938. \mbox{}\verb"\_{auf,}\^{\dec}{\h{3}}%" \newline
  939. \mbox{}\verb"\group{\\{\_n{wacht}\^{zart}{\caesura\a{4}}}\\{\a{2}}}" \newline
  940. \mbox{}\verb"      {\\{4}\\{2}}\ubeam{1}{2}\go%" \newline
  941. \mbox{}\verb"\|%" \newline
  942. \mbox{}\verb"\_{auf,}\^{\dec}{\h{6}\.{1}}\caesura%" \newline
  943. \mbox{}\verb"\|%" \newline
  944. \mbox{}\verb"\_{las-}\^{\forte}{\v{-1}}%" \newline
  945. \mbox{}\verb"\_{set}{\v{0}\.{1}}%" \newline
  946. \mbox{}\verb"\_{den}{\a{1}}%" \newline
  947. \mbox{}\verb"\|%" \newline
  948. \mbox{}\verb"\meter{4}/{4}%" \newline
  949. \mbox{}\verb"\_{Lob-}{\h{2}}%" \newline
  950. \mbox{}\verb"\_{ge-}{\v{3}}%" \newline
  951. \mbox{}\verb"\_{sang}{\v{4}}%" \newline
  952. \mbox{}\verb"\|%" \newline
  953. \mbox{}\verb"\meter{7}/{4}%" \newline
  954. \mbox{}\verb+\group{\\{\_{h\"{o}}{\h{5}}}\\{\_{-}{\v{4}\.{1}}}%+ \newline
  955. \mbox{}\verb"\\{\_{-}{\a{3}}}\\{\_{-}{\v{2}}}\\{\_{-}{\h{3}}}}" \newline
  956. \mbox{}\verb"      {\\{5}\\{4}\\{3}\\{2}\\{9}}\uslur{1}{5}\go%" \newline
  957. \mbox{}\verb"\|%" \newline
  958. \mbox{}\verb"\meter{3}/{4}%" \newline
  959. \mbox{}\verb"\_{ren!}{\h{2}\.{1}}%" \newline
  960. \mbox{}\verb"\=%" \newline
  961. \mbox{}\verb"\endsong" \newline
  962. \mbox{}\verb"\bye"
  963. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  964. \chapter{\TeX{nicalities}}
  965. \typeout{TeXnicalities}
  966. Here is information of a more technical nature. Like me, you may never 
  967. need any of this, but since it was included in the original german 
  968. documentation, I decided to make it available anyway. 
  969. \section{\MuTeX\ Fonts}
  970. The fonts used by \MuTeX\ can be specified with the control sequences in 
  971. Figure~\ref{figfont}.
  972. \begin{figure}[htbp]
  973. \centering
  974.   \begin{tabular}{ll}
  975.     \verb"\music"      & Music Sign \\
  976.     \verb"\beamfont"   & Beam Font \\
  977.     \verb"\slurfontuu" & Slur Font (concave, rising) \\
  978.     \verb"\slurfontud" & Slur Font (concave, falling) \\
  979.     \verb"\slurfontdu" & Slur Font (convex, rising) \\
  980.     \verb"\slurfontdd" & Slur Font (convex, falling) \\
  981.     \verb"\eightrm"    & Eight-Point Roman Font for Text
  982.   \end{tabular}
  983. \caption{\MuTeX\ Fonts.}
  984. \label{figfont}
  985. \end{figure}
  986. \section{Music Characters}
  987. The characters\footnote{The author recommends changing the names of the 
  988. fermata characters to allow the implementation of the fermata accents.} 
  989. introduced by \MuTeX\ are listed in Figures~\ref{figcharA} 
  990. and~\ref{figcharB}. 
  991. \begin{figure}[htbp] 
  992. \centering
  993.   \begin{tabular}{lll} 
  994.     Note Heads: & & \\
  995.     \verb"\quart"                  & \verb"\hex21" & Crotchet Note Head \\
  996.     \verb"\half"                   & \verb"\hex22" & Minim Note Head \\
  997.     \verb"\whole"                  & \verb"\hex23" & Semibreve Note Head \\
  998.     Flags: & & \\
  999.     \verb"\eighthup"               & \verb"\hex28" & $8^{th}$ Upward \\
  1000.     \verb"\eighthdown"             & \verb"\hex2D" & $8^{th}$ Downward \\
  1001.     \verb"\sixteenthup"            & \verb"\hex29" & $16^{th}$ Upward \\
  1002.     \verb"\sixteenthdown"          & \verb"\hex2E" & $16^{th}$ Downward \\
  1003.     \verb"\thirtytwoup"            & \verb"\hex2A" & $32^{nd}$ Upward \\
  1004.     \verb"\thirtytwodown"          & \verb"\hex2F" & $32^{nd}$ Downward \\
  1005.     \verb"\sixtyfourup"            & \verb"\hex2B" & $64^{th}$ Upward \\
  1006.     \verb"\sixtyfourdown"          & \verb"\hex30" & $64^{th}$ Downward \\
  1007.     \verb"\hundredtwentyeightup"   & \verb"\hex2C" & $128^{th}$ Upward \\
  1008.     \verb"\hundredtwentyeightdown" & \verb"\hex31" & $128^{th}$ Downward\\
  1009.     Rests: & & \\
  1010.     \verb"\wholerest"              & \verb"\hex3C" & Whole Rest \\
  1011.     \verb"\halfrest"               & \verb"\hex3D" & Half Rest \\
  1012.     \verb"\quartrest"              & \verb"\hex3E" & Quarter Rest \\
  1013.     \verb"\eighthrest"             & \verb"\hex3F" & Eighth Rest \\
  1014.     \verb"\sixteenthrest"          & \verb"\hex40" & Sixteenth Rest \\
  1015.     Measure Rests: & & \\
  1016.     \verb"\doublerest"             & \verb"\hex3A" & Two-Measure Rest\\
  1017.     \verb"\ddoublerest"            & \verb"\hex3B" & Four-Measure Rest
  1018.   \end{tabular}
  1019. \caption{Music Characters (Part 1).}
  1020. \label{figcharA}
  1021. \end{figure}
  1022. \begin{figure}[htbp] 
  1023. \centering
  1024.   \begin{tabular}{lll} 
  1025.   Fermatas: & & \\
  1026.   \verb"\ffermateup"             & \verb"\hex50" & 
  1027.                                  $\frown$\kern-0.63em \lower.2ex\hbox{$\cdot$}\\
  1028.   \verb"\ffermatedown"           & \verb"\hex51" & 
  1029.                                  $\smile$\kern-0.65em \raise.2ex\hbox{$\cdot$}\\
  1030.   Pitch Changes: & & \\
  1031.   \verb"\mflat"                  & \verb"\hex32" & $\flat$ \\
  1032.   \verb"\mdoubleflat"            & \verb"\hex33" & Double-$\flat$ \\
  1033.   \verb"\mquartflat"             & \verb"\hex37" & Quarter-$\flat$ \\
  1034.   \verb"\mthreequartflat"        & \verb"\hex3A" & Three-Quarters-$\flat$ \\
  1035.   \verb"\msharp"                 & \verb"\hex34" & $\sharp$ \\
  1036.   \verb"\mdoublesharp"           & \verb"\hex35" & Double-$\sharp$ \\
  1037.   \verb"\mnatural"               & \verb"\hex36" & $\natural$ \\
  1038.   Clefs: & & \\
  1039.   \verb"\mviolin"                & \verb"\hex47" & Trebel Clef \\
  1040.                                  & \verb"\hex48" & Smaller Trebel Clef \\
  1041.   \verb"\mbass"                  & \verb"\hex49" & Bass Clef \\
  1042.                                  & \verb"\hex4A" & Smaller Bass Clef \\
  1043.   \verb"\mbariton"               & \verb"\hex4D" & Baritone Clef \\
  1044.   \verb"\mtenor"                 & \verb"\hex4C" & Tenor Clef \\
  1045.   \verb"\malt"                   & \verb"\hex4B" & Alto Clef \\
  1046.   \verb"\mmezzosopran"           & \verb"\hex4E" & Mezzosoprano Clef \\
  1047.   \verb"\msopran"                & \verb"\hex4E" & Soprano Clef \\
  1048.   Time Signatures: & & \\
  1049.   \verb"\mC"                     & \verb"\hex53" & $\subset$ \\
  1050.   \verb"\allabreve"              & \verb"\hex52" & $\subset\!\!\!\mid$ \\
  1051.   \verb"\mCreverse"              & \verb"\hex54" & $\supset$
  1052.   \end{tabular}
  1053. \caption{Music Characters (Part 2).}
  1054. \label{figcharB}
  1055. \end{figure}
  1056. \section{Alterable Parameters}
  1057. A few alterable parameters are found in Figure~\ref{figalterable}.
  1058. \begin{figure}[htbp]
  1059. \centering
  1060.   \begin{tabular}{ll}
  1061.     \verb"\textline"  & Interval between text and lowest line of staff \\
  1062.     \verb"\minsl"     & Minimal stem-length of note \\
  1063.     \verb"\overtext"  & Accompanying text above the staff \\
  1064.     \verb"\undertext" & Accompanying text below the staff \\
  1065.   \end{tabular}
  1066. \caption{Alterable Parameters.}
  1067. \label{figalterable}
  1068. \end{figure}
  1069. \section{Glue Parameters}
  1070. Spacing between notes is controlled by glues, i.e., penalties associated 
  1071. with different spacings. Figure~\ref{figgluepar} lists the ones defined 
  1072. by \MuTeX. 
  1073. \begin{figure}[htbp]
  1074. \centering
  1075.   \begin{tabular}{ll}
  1076.     \verb"\NOTEskip" & Whole Note Glue \\
  1077.     \verb"\noteskip" & Minim Note Glue \\
  1078.     \verb"\noteskip" & Crotchet Note Glue \\
  1079.     \verb"\notEskip" & $8^{th}$ Note Glue \\
  1080.     \verb"\noTEskip" & $16^{th}$ Note Glue \\
  1081.     \verb"\nOTEskip" & $32^{nd}$ Note Glue \\
  1082.     \verb"\nOteskip" & $64^{th}$ Note Glue \\
  1083.     \verb"\nOtEskip" & $128^{th}$ Note Glue \\
  1084.     \verb"\ruleskip" & Rules Glue \\
  1085.     \verb"\hunkskip" & Notes and Rules Glues
  1086.   \end{tabular}
  1087. \caption{Glue Parameters.}
  1088. \label{figgluepar}
  1089. \end{figure}
  1090. \section{Glue Macros}
  1091. Section~\ref{secpreamble} about \MuTeX's preamble introduced the five 
  1092. available spacings. Figures~\ref{figglueA} to~\ref{figglueE} present 
  1093. these spacings in terms of \MuTeX's glue parameters. 
  1094. \begin{figure}[htbp]
  1095. \centering
  1096.   \begin{tabular}{ll}
  1097.     \verb"\def\hsmall{%" \\
  1098.     \verb"\Noteskip 3\nhw plus 2\seminhw minus 2\seminhw" \\
  1099.     \verb"\NOTEskip = \Noteskip" \\
  1100.     \verb"\noteskip 2\nhw plus 1.5\seminhw  minus 1.5\seminhw" \\
  1101.     \verb"\notEskip 1\nhw plus \seminhw  minus \seminhw" \\
  1102.     \verb"\noTEskip \z@ plus 0.5\seminhw  minus \z@" \\
  1103.     \verb"\nOTEskip=\noTEskip \nOteskip=\noTEskip \nOtEskip=\noTEskip" \\
  1104.     \verb"\hunkskip \z@ \relax}"
  1105.   \end{tabular}
  1106. \caption{Glue Parameters for {\tt{hsmall}}.}
  1107. \label{figglueA}
  1108. \end{figure}
  1109. \newpage %Bad page break fixed
  1110. \begin{figure}[htbp]
  1111. \centering
  1112.   \begin{tabular}{ll}
  1113.     \verb"\def\small{%" \\
  1114.     \verb"\Noteskip 3.5\nhw plus 1.8\seminhw minus 1.8\seminhw" \\
  1115.     \verb"\NOTEskip = \Noteskip" \\
  1116.     \verb"\noteskip 2.5\nhw plus 1.4\seminhw  minus 1.4\seminhw" \\
  1117.     \verb"\notEskip 1.5\nhw plus \seminhw  minus \seminhw" \\
  1118.     \verb"\noTEskip \seminhw plus 0.6\seminhw  minus 0.6\seminhw" \\
  1119.     \verb"\nOTEskip=\noTEskip \nOteskip=\noTEskip \nOtEskip=\noTEskip" \\
  1120.     \verb"\hunkskip \z@ \relax}"
  1121.   \end{tabular}
  1122. \caption{Glue Parameters for {\tt{small}}.}
  1123. \label{figglueB}
  1124. \end{figure}
  1125. \begin{figure}[htbp]
  1126. \centering
  1127.   \begin{tabular}{ll}
  1128.     \verb"\def\universal{%" \\
  1129.     \verb"\Noteskip 4\nhw plus 1.6\nhw minus 1.6\nhw" \\
  1130.     \verb"\NOTEskip = \Noteskip" \\
  1131.     \verb"\noteskip 3\nhw plus 1.3\nhw  minus 1.3\nhw" \\
  1132.     \verb"\notEskip 2\nhw plus \nhw  minus \nhw" \\
  1133.     \verb"\noTEskip \nhw plus 0.6\nhw  minus 0.6\nhw" \\
  1134.     \verb"\nOTEskip=\noTEskip \nOteskip=\noTEskip \nOtEskip=\noTEskip" \\
  1135.     \verb"\hunkskip \z@ \relax}"
  1136.   \end{tabular}
  1137. \caption{Glue Parameters for {\tt{universal}}.}
  1138. \label{figglueC}
  1139. \end{figure}
  1140. \begin{figure}[htbp]
  1141. \centering
  1142.   \begin{tabular}{ll}
  1143.     \verb"\def\wide{%" \\
  1144.     \verb"\Noteskip 4\nhw plus 1.42\nhw minus 1.42\nhw" \\
  1145.     \verb"\NOTEskip = \Noteskip" \\
  1146.     \verb"\noteskip 3.5\nhw plus 1.28\nhw  minus 1.28\nhw" \\
  1147.     \verb"\notEskip 2.5\nhw plus \nhw  minus \nhw" \\
  1148.     \verb"\noTEskip 1.5\nhw plus 0.9\nhw  minus 0.9\nhw" \\
  1149.     \verb"\nOTEskip=\noTEskip \nOteskip=\noTEskip \nOtEskip=\noTEskip" \\
  1150.     \verb"\hunkskip \z@ \relax}"
  1151.   \end{tabular}
  1152. \caption{Glue Parameters for {\tt{wide}}.}
  1153. \label{figglueD}
  1154. \end{figure}
  1155. \begin{figure}[htbp]
  1156. \centering
  1157.   \begin{tabular}{ll}
  1158.     \verb"\def\loose{%" \\
  1159.     \verb"\Noteskip 5\nhw plus 1.5\nhw minus 1.5\nhw" \\
  1160.     \verb"\NOTEskip = \Noteskip" \\
  1161.     \verb"\noteskip 4\nhw plus 1.25\nhw  minus 1.25\nhw" \\
  1162.     \verb"\notEskip 3\nhw plus \nhw  minus \nhw" \\
  1163.     \verb"\noTEskip 2\nhw plus 0.75\nhw  minus 0.75\nhw" \\
  1164.     \verb"\nOTEskip=\noTEskip \nOteskip=\noTEskip \nOtEskip=\noTEskip" \\
  1165.     \verb"\hunkskip \z@ \relax}"
  1166.   \end{tabular}
  1167. \caption{Glue Parameters for {\tt{loose}}.}
  1168. \label{figglueE}
  1169. \end{figure}
  1170. Recall that the default spacing is \verb"\universal". Finally, the glue 
  1171. for rules is defined as: 
  1172. \begin{quote}
  1173.   \verb"\ruleskip  = \nhw plus \seminhw minus \seminhw"
  1174. \end{quote}
  1175. \section{Base Line Macros}
  1176. Use the following macros to tell \MuTeX\ that your piece of music will 
  1177. span one or several staffs. 
  1178. \begin{figure}[htbp]
  1179. \centering
  1180.   \begin{tabular}{ll}
  1181.     \verb"\baselinesa          " & Single Staff \\
  1182.     \verb"\baselinesb          " & Multiple Staffs
  1183.   \end{tabular}
  1184. \caption{Baselineskip Macros.}
  1185. \end{figure}
  1186. The default is naturally: 
  1187. \begin{quote}
  1188.   \verb"\let\baselines = \baselinesb"
  1189. \end{quote}
  1190. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  1191. \chapter{\MuTeX\ Patches}
  1192. \typeout{MuTeX Patches}
  1193. \label{secpatches}
  1194. I found several errors in the original german version of \MuTeX. Since I 
  1195. cannot take the liberty of correcting them myself, I simply list here the 
  1196. changes I suggest you make to your copy. These corrections would be 
  1197. performed, of course, on {\tt{mtex.doc}} and {\tt{mtex.tex}}. I would 
  1198. advise against distributing modified copies.
  1199. \subsection*{Keys}
  1200. The definition of the minor key \verb"\mdis" could be corrected. I'm no 
  1201. professional musician, but that key doesn't look right to me. 
  1202. The definition would go from: \\
  1203. \verb"\let\mdis=\F                 \let\ma=\C" \\
  1204. to: \\
  1205. \verb"\let\mdis=\Fis               \let\ma=\C"
  1206. There is also an internal error in the major key \verb"\D". Replace 
  1207. \verb"\x@5" by \verb"\n@5" near the end of the line. This error is 
  1208. obvious by inspection of all key definitions. 
  1209. The definition would go from: \\
  1210. \verb"\def\D{\signature{\x@8\x@5}{\n@8\x@5}}" \\
  1211. to: \\
  1212. \verb"\def\D{\signature{\x@8\x@5}{\n@8\n@5}}"
  1213. \subsection*{Staccatissimo}
  1214. The definition of \verb"\staccatissimo" could be corrected. \MuTeX\ uses 
  1215. the nonexistant size \verb"\ssize" to print a prime symbol in math mode. 
  1216. I would change this to \verb"\scriptstyle" size which is defined in \TeX. 
  1217. The definition would go from: \\
  1218. \verb"\def\staccatissimo{\setbox\akzentbox%" \\
  1219. \mbox{}\verb"  \hboxnhw{$\ssize\prime$}{\box\akzentbox}}" \\
  1220. to: \\
  1221. \verb"\def\staccatissimo{\setbox\akzentbox%" \\
  1222. \mbox{}\verb"  \hboxnhw{$\scriptstyle\prime$}{\box\akzentbox}}"
  1223. \subsection*{Boxes}
  1224. The definition of \verb"\1" \ldots\,\verb"\2" \ldots\,\verb"\*" could be 
  1225. corrected. The numbering of boxes is done using the \verb"\music" font 
  1226. instead of the \verb"\rm" font. One gets music symbols instead of numbers 
  1227. under the boxes! I would change \verb"\repbox{1.}" to 
  1228. \verb"\repbox{\rm{1.}}", and do a similar thing with \verb"\repbox{2.}". 
  1229. A line would go from: \\
  1230. \verb"\vbox{\halign{##\cr\repbox{1.}\r@lef@ll{\linethickness}\cr" \\
  1231. to: \\
  1232. \verb"\vbox{\halign{##\cr\repbox{\rm{1.}}\r@lef@ll{\linethickness}\cr"
  1233. Another line would go from: \\
  1234. \verb"\repbox{2.}\r@lef@ll{\linethickness}\cr" \\
  1235. to: \\
  1236. \verb"\repbox{\rm{2.}}\r@lef@ll{\linethickness}\cr"
  1237. I also found that undefined glue is used. I would replace 
  1238. \verb"\setgluebrule" with \verb"\gluebrule", and do a similar thing with 
  1239. \verb"\setgluearule". 
  1240. A line would go from: \\
  1241. \verb"\repstrut\setgluebrule\doppelpunkt\kern\seminhw\thinvrule\cr}}}" \\
  1242. to: \\
  1243. \verb"\repstrut\gluebrule\doppelpunkt\kern\seminhw\thinvrule\cr}}}"
  1244. Another line would go from: \\
  1245. \verb"\repstrut\thickvrule\setgluearule#1\cr}}%" \\
  1246. to: \\
  1247. \verb"\repstrut\thickvrule\gluearule#1\cr}}%"
  1248. \subsection*{Fermatas}
  1249. Although the fermatas are available in \MuTeX\ as characters, there is no 
  1250. facility provided for using them. I felt their use closely resembled that 
  1251. of fixed accents like {\it{fff}}, and I recommend supplying the necessary 
  1252. commands. 
  1253. Since I would like to use the original character name as my new command 
  1254. name, I would rename the characters from \verb"\fermateup" to 
  1255. \verb"\ffermateup", and do a similar thing with \verb"\fermatedown". 
  1256. The character definitions would go from: \\ 
  1257. \verb"\chardef\fermateup=\hex50" \\
  1258. \verb"\chardef\fermatedown=\hex51" \\
  1259. to: \\
  1260. \verb"\chardef\ffermateup=\hex50" \\
  1261. \verb"\chardef\ffermatedown=\hex51"
  1262. Finally, I would introduce the \verb"\fermateup" and \verb"\fermatedown"
  1263. fixed accents. The file would now look like: \\
  1264. \verb"\def\sforz{{\it sf}}" \\
  1265. \verb"\def\staccato{{\it stacc.}}" \\
  1266. \verb"\def\tacet{{\it tacet}}" \\
  1267. \verb"\def\unisono{{\it unis.}}" \\
  1268. \verb"\def\fermateup{\hskip-0.5\nhh\raise0.5\nhh%" \\
  1269. \verb"\hbox{\music\ffermateup}}" \\
  1270. \verb"\def\fermatedown{\hskip-0.5\nhh\raise1.5\nhh%" \\
  1271. \verb"\hbox{\music\ffermatedown}}"
  1272. \subsection*{Accidentals} 
  1273. Here is a weird error I could never fully understand. There is confusion 
  1274. when accidentals in some input file are expanded. For example, I found 
  1275. that the accidental \verb"\b@{4}" was interpreted by \MuTeX\ as 
  1276. \verb"\b{@4}". \MuTeX\ would then complain that the command \verb"\b" was 
  1277. undefined, or that it was expecting a number after \verb"\b", but not 
  1278. \verb"@4". Strangely, this is not a problem for \MuTeX\ when it uses 
  1279. accidentals internally to create the signature from the \verb"\key" 
  1280. command. 
  1281. I would replace \verb"\b@" by \verb"\bA", and do a similar thing with 
  1282. \verb"\x@" and \verb"\n@" so that now no confusion is possible. 
  1283. The definitions would go from: \\
  1284. \verb"\def\b@#1{\setsign{#1}{\mflat}}" \\
  1285. \verb"\def\x@#1{\setsign{#1}{\msharp}}" \\
  1286. \verb"\def\n@#1{\setsign{#1}{\mnatural}}" \\
  1287. to: \\
  1288. \verb"\def\bA#1{\setsign{#1}{\mflat}}" \\
  1289. \verb"\def\xA#1{\setsign{#1}{\msharp}}" \\
  1290. \verb"\def\nA#1{\setsign{#1}{\mnatural}}"
  1291. Of course, the signatures would need to be fixed accordingly.
  1292. The definitions would go from: \\
  1293. \verb"\def\F{\signature{\b@4}{\n@4}}" \\
  1294. \verb"\def\B{\signature{\b@4\b@7}{\n@4\n@7}}" \\
  1295. \verb"\def\Es{\signature{\b@4\b@7\b@3}{\n@4\n@7\n@3}}" \\
  1296. \verb"\def\As{\signature{\b@4\b@7\b@3\b@6}{\n@4\n@7\n@3\n@6}}" \\
  1297. \verb"\def\Des{\signature{\b@4\b@7\b@3\b@6\b@2}{\n@4\n@7\n@3\n@6%" \\
  1298. \verb"\n@2}}" \\
  1299. \verb"\def\Ges{\signature{\b@4\b@7\b@3\b@6\b@2\b@5}{\n@4\n@7\n@3%" \\
  1300. \verb"\n@5\n@2\n@5}}"\\
  1301. \verb"\def\Ces{\signature{\b@4\b@7\b@3\b@6\b@2\b@5\b@1}%" \\
  1302. \mbox{}\verb"  {\n@4\n@7\n@3\n@5\n@2\n@5\n@1}}" \\
  1303. \verb"\def\C{\signature{}{}}" \\
  1304. \verb"\def\G{\signature{\x@8}{\n@8}}" \\
  1305. \verb"\def\D{\signature{\x@8\x@5}{\n@8\n@5}}" \\
  1306. \verb"\def\A{\signature{\x@8\x@5\x@9}{\n@8\n@5\n@9}}" \\
  1307. \verb"\def\E{\signature{\x@8\x@5\x@9\x@6}{\n@8\n@5\n@9\n@6}}" \\
  1308. \verb"\def\H{\signature{\x@8\x@5\x@9\x@6\x@3}{\n@8\n@5\n@9\n@6%" \\
  1309. \verb"\n@3}}" \\
  1310. \verb"\def\Fis{\signature{\x@8\x@5\x@9\x@6\x@3\x@4}{\n@8\n@5\n@9%" \\
  1311. \verb"\n@6\n@3\n@4}}"\\
  1312. to: \\
  1313. \verb"\def\F{\signature{\bA4}{\nA4}}" \\
  1314. \verb"\def\B{\signature{\bA4\bA7}{\nA4\nA7}}" \\
  1315. \verb"\def\Es{\signature{\bA4\bA7\bA3}{\nA4\nA7\nA3}}" \\
  1316. \verb"\def\As{\signature{\bA4\bA7\bA3\bA6}{\nA4\nA7\nA3\nA6}}" \\
  1317. \verb"\def\Des{\signature{\bA4\bA7\bA3\bA6\bA2}{\nA4\nA7\nA3\nA6%" \\
  1318. \verb"\nA2}}" \\
  1319. \verb"\def\Ges{\signature{\bA4\bA7\bA3\bA6\bA2\bA5}{\nA4\nA7\nA3%" \\
  1320. \verb"\nA5\nA2\nA5}}"\\
  1321. \verb"\def\Ces{\signature{\bA4\bA7\bA3\bA6\bA2\bA5\bA1}%" \\
  1322. \mbox{}\verb"  {\nA4\nA7\nA3\nA5\nA2\nA5\nA1}}" \\
  1323. \verb"\def\C{\signature{}{}}" \\
  1324. \verb"\def\G{\signature{\xA8}{\nA8}}" \\
  1325. \verb"\def\D{\signature{\xA8\xA5}{\nA8\nA5}}" \\
  1326. \verb"\def\A{\signature{\xA8\xA5\xA9}{\nA8\nA5\nA9}}" \\
  1327. \verb"\def\E{\signature{\xA8\xA5\xA9\xA6}{\nA8\nA5\nA9\nA6}}" \\
  1328. \verb"\def\H{\signature{\xA8\xA5\xA9\xA6\xA3}{\nA8\nA5\nA9\nA6%" \\
  1329. \verb"\nA3}}" \\
  1330. \verb"\def\Fis{\signature{\xA8\xA5\xA9\xA6\xA3\xA4}{\nA8\nA5\nA9%" \\
  1331. \verb"\nA6\nA3\nA4}}"
  1332. That's all so far. 
  1333. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  1334. \chapter{Setting Up \MuTeX}
  1335. \typeout{Setting Up MuTeX}
  1336. \label{secsetting}
  1337. I had never used \TeX\ or \MF\footnote{Trademark of Addison-Wesley 
  1338. Publishing Company.} before coming across \MuTeX\ and I sure went through 
  1339. a few hours of frustration before getting things running properly. I hope 
  1340. the following will save you some trouble. 
  1341. Here are the files in your \MuTeX\ package:
  1342. \begin{center}
  1343.   \begin{tabular}{ll}
  1344.     \verb"readme"       & This brief description of all files \\
  1345.     \verb"mtex.txt"     & Brief description in german of german files \\
  1346.     \verb"mtex.tex"     & \MuTeX\ commented in german in \TeX \\
  1347.     \verb"mplain.tex"   & \MuTeX\ plain format in \TeX \\
  1348.     \verb"mtexdemo.tex" & Demo in german written in \TeX \\
  1349.     \verb"bach.tex"     & First demo written in \MuTeX \\
  1350.     \verb"distler.tex"  & Second demo written in \MuTeX \\
  1351.     \verb"mtexinfo.tex" & Command reference in german written in \TeX \\
  1352.     \verb"guide.tex"    & Guide in english written in \LaTeX \\
  1353.     \verb"mf"           & \MF\ input files for \MuTeX \\
  1354.     \verb"tfm"          & \TeX\ font metrics files for \MuTeX \\
  1355.     \verb"dpi118"       & Fonts at $118$DPI for Sun raster screen \\
  1356.     \verb"dpi120"       & Fonts at $120$DPI for Micro-\TeX \\
  1357.     \verb"dpi240"       & Fonts at $240$DPI for Epson printer \\
  1358.     \verb"dpi300"       & Fonts at $300$DPI for Canon-CX Laserwriter
  1359.   \end{tabular}
  1360. \end{center}
  1361. \section{METAFONT}
  1362. The first step in setting up \MuTeX\ is to generate the proper fonts for 
  1363. your previewing and printing devices. This is done with the \MF\ package 
  1364. which is made up of two different programs. Note that these two programs 
  1365. are sometimes combined into one bigger one. The presence of a {\tt{-i}} 
  1366. or {\tt{/i}} flag on the command line may determines the behavior. There 
  1367. may also be two script (or batch) files on your system which take care of 
  1368. calling that single program with the proper flags and paths set. This is 
  1369. an area you will have to investigate on your own. For the sake of 
  1370. simplicity, let's consider we simply have: 
  1371. \begin{center}
  1372.   \begin{tabular}{ll}
  1373.     \verb"inimf    " & Initialization Program \\
  1374.     \verb"mf       " & Font Program
  1375.   \end{tabular}
  1376. \end{center}
  1377. These two programs work on \MF\ input files that specify the characters 
  1378. whose fonts you want to create, and that also include control commands. 
  1379. The standard \MF\ package includes such an input file, the 
  1380. \verb"plain.mf" file. \MuTeX\ also includes thirteen such input files in 
  1381. its \verb"mf" directory. These are: 
  1382. \begin{center}
  1383.   \begin{tabular}{llll}
  1384. \verb"beam16.mf"   &\verb"music16.mf"  &\verb"slurdd16.mf" &\verb"slurdu16.mf"\\
  1385. \verb"slurud16.mf" &\verb"sluruu16.mf" &\verb"slur16.mf"   &\verb"musicdef.mf"\\
  1386. \verb"acc16.mf"    &\verb"noten16.mf"  &\verb"pause16.mf"  &\verb"sonder16.mf"\\
  1387. \verb"vio16.mf"    &                   &                   &
  1388.   \end{tabular}
  1389. \end{center}
  1390. You will have to generate fonts for the first seven of these, the 
  1391. remaining six are actually called upon automatically by the first seven, 
  1392. when needed. However, you may be in luck. You have already been supplied 
  1393. with four sets of fonts. If the ones you need are amongst these four, you 
  1394. need not use \MF\ at all! 
  1395. If you need to generate your own fonts, you will have to give \MF\ some 
  1396. information about their desired characteristics. This is done with a 
  1397. \MF\ mode definition file. Figure~\ref{figMF} shows the mode definition 
  1398. file, \verb"epson.mf", for my Epson FX-$80$ $9$-pin printer. 
  1399. \begin{figure}[htbp]
  1400. \centering
  1401.   \begin{tabular}{l}
  1402.     \mbox{}\verb"mode_def epson =       % Epson (TUGboat 8,2 p. 133)" \\
  1403.     \mbox{}\verb" proofing:=0;          % we are not making proofs" \\
  1404.     \mbox{}\verb" fontmaking:=1;        % we are making a font" \\
  1405.     \mbox{}\verb" tracingtitles:=0;     % do not show titles in the log" \\
  1406.     \mbox{}\verb" pixels_per_inch:=240; % 240 DPI horizontal resolution" \\
  1407.     \mbox{}\verb" blacker:=0;           % do not make the pens any blacker" \\
  1408.     \mbox{}\verb" fillin:=0;            % do not compensate for fillin" \\
  1409.     \mbox{}\verb" o_correction:=.2;     % suppress most overshoots" \\
  1410.     \mbox{}\verb" aspect_ratio:=9/10;   % 216 DPI vertical resolution" \\
  1411.     \mbox{}\verb" enddef;"
  1412.   \end{tabular}
  1413. \caption{Mode Definition File.}
  1414. \label{figMF}
  1415. \end{figure}
  1416. If you don't have a mode definition file for your device, consult your 
  1417. local \TeX\ wizard. There are small libraries of them around. 
  1418. Once you have your mode definition file, it is time to initialize \MF. 
  1419. Check if this step has not already been performed on your system. You 
  1420. initialize \MF\ with the program \verb"inimf" and the input file 
  1421. \verb"plain.mf". Simply type \verb"inimf plain" and wait for the \verb"*" 
  1422. prompt, then type \verb"\dump". A base file \verb"plain.base" will be 
  1423. created for you by \verb"inimf". That's all there is to it. 
  1424. You are now ready to create your own fonts. You will need the program 
  1425. \verb"mf", the base file \verb"plain.base" just created, and your mode 
  1426. definition file, say \verb"epson.mf". Remember, the following step must 
  1427. be performed seven times. Let's consider the first input file 
  1428. \verb"beam16.mf". Type in \verb"mf &plain epson" and wait for the usual 
  1429. \verb"*" prompt. Then confirm that you want to generate fonts using the 
  1430. \verb"epson.mf" mode definition file by typing \verb"\mode:=epson;". Then 
  1431. specify the desired size with \verb"\mag:=magstep(0.0);". Finally, 
  1432. specify the input file with \verb"input beam16". The rest is automatic. I 
  1433. must point out again things may be slightly different on your system.
  1434. After you have performed the latter step with the first seven input 
  1435. files, you will find that seven \TeX\ font metric files, i.e., 
  1436. \verb"beam16.tfm", were generated along with the font files. This is 
  1437. normal behavior for \verb"mf". The font metric files are already supplied 
  1438. in the directory \verb"tfm" with \MuTeX. They should be identical to 
  1439. yours. Use whichever you want. 
  1440. The seven font files should look like \verb"beam16.240gf". The $240$ 
  1441. comes from the horizontal resolution in your mode definition file. This 
  1442. is all that is needed for some systems and you may already be all set up 
  1443. as far as the fonts are concerned. However, some systems require that you 
  1444. compress the font files using the program \verb"gftopk" which is widely 
  1445. available in \TeX\ circles. For example, typing 
  1446. \verb"gftopk beam16.240gf" would create the file \verb"beam16.240pk". 
  1447. Personally, I have found that Sun previewers require the standard font 
  1448. files, while my version of \TeX\ requires the compressed font files. 
  1449. You probably will have to move the \TeX\ font metric files, your seven 
  1450. previewing font files, and your seven printing font files in some 
  1451. specific directories on your system. You will have to find out which ones 
  1452. on your own. 
  1453. \section{\TeX}
  1454. The second step in setting up \MuTeX\ is to initialize \TeX with it. As 
  1455. was the case for \MF, the \TeX\ package is made up of two different 
  1456. programs. The same remarks as in the case of \MF\ apply. These two 
  1457. programs could be combined into one on your system. If this is the case, 
  1458. they are likely accessed through script (or batch) files. Let's assume 
  1459. that they are separate: 
  1460. \begin{center}
  1461.   \begin{tabular}{ll}
  1462.     \verb"initex    " & Initialization Program \\
  1463.     \verb"tex       " & Typesetting Program
  1464.   \end{tabular}
  1465. \end{center}
  1466. These two programs work on \TeX\ input files that specify the text you 
  1467. want to typeset, and that also include control commands. The standard 
  1468. \TeX\ package includes several such input files. You will need 
  1469. \verb"plain.tex" and \verb"hyphen.tex". \MuTeX\ also includes two such 
  1470. input files that you will need, \verb"mtex.tex" and \verb"mplain.tex". 
  1471. You initialize \TeX\ with the program \verb"initex" and the four input 
  1472. files just mentioned. Simply type \verb"initex mplain" and wait for the 
  1473. usual \verb"*" prompt, then type \verb"\dump". A format file 
  1474. \verb"mplain.fmt" will be created for you by \verb"initex". Now, that was 
  1475. simple! You may have to move that format file in some specific directory 
  1476. on your system.
  1477. Suppose you want to process some piece of music, say \verb"bach.tex". You 
  1478. will need the program \verb"tex", the format file \verb"mplain.fmt" just 
  1479. created, and your input file \verb"bach.tex". Then, just type in 
  1480. \verb"tex &mplain bach". This should create the file \verb"bach.dvi" 
  1481. ready for previewing and printing. Try it with the two input files 
  1482. supplied with \MuTeX, \verb"bach.tex" and \verb"distler.tex". I will 
  1483. point out here again that things may differ slightly on your system. 
  1484. Note that the file \verb"mtexdemo.tex" in german supplied with \MuTeX\ is 
  1485. meant to run on standard \TeX, not on \MuTeX. To process it, you should 
  1486. type something like \verb"tex &plain mtexdemo". Make sure the input file 
  1487. \verb"mtex.tex" is in the same directory as \verb"mtexdemo.tex" since the 
  1488. latter will ask \TeX\ to read the former. I suspect you will never feel 
  1489. the need to process \verb"mtexdemo.tex" since the two files 
  1490. \verb"bach.tex" and \verb"distler.tex" constitute equally valid examples. 
  1491. The files you will need daily while using \MuTeX\ are the seven font 
  1492. files (\verb"beam16.240pk",\ldots) for your previewing and printing 
  1493. devices (fourteen fonts altogether), the seven \TeX\ font metric files 
  1494. (\verb"beam16.tfm",\ldots), and the format file \verb"mplain.fmt". You 
  1495. will also, of course, need the \verb"tex" program and its standard 
  1496. accompanying files. 
  1497. I hope this has proven of some help to you. Happy \MuTeX{ing}!
  1498. \end{document}
  1499.